#include "IvsManager.h"

CIvsManager::CIvsManager()
{
    m_sqlite = NULL;
}

CIvsManager::~CIvsManager()
{
	if (m_sqlite != NULL)
	{
		sqlite3_close(m_sqlite);
		m_sqlite = NULL;
	}
}

bool CIvsManager::CheckUser(const char *pUserName, const char *pPasswd, int nAuthType)
{
    return true;
}

int CIvsManager::OpenDB()
{
	int nRet = SQLITE_OK;
	if (m_sqlite == NULL)
		nRet = sqlite3_open("x_conf.db", &m_sqlite);

	if (nRet != SQLITE_OK)
		return J_DB_ERROR;

	return J_OK;
}
